package cn.com.greatwall.oauth.service;

import java.util.Map;

import cn.com.greatwall.common.model.PageResult;
import cn.com.greatwall.common.model.Result;
import cn.com.greatwall.common.service.ISuperService;
import cn.com.greatwall.oauth.model.Client;

/**
 * @Author herw
 * @Time 2022-01-05 17:58:23
 * @Version 1.0
 * @Description: TODO(用一句话描述该文件做什么)
 */
public interface IClientService extends ISuperService<Client> {
    Result saveClient(Client clientDto) throws Exception;
    
    /**
     * 查询应用列表
     * @param params
     * @param isPage    是否分页
     * @return
     */
    PageResult<Client> listClient(Map<String, Object> params, boolean isPage);
    
    void delClient(long id);
    
    Client loadClientByClientId(String clientId);
}
